<!DOCTYPE html>
<html class="pixel-ratio-1"><head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>茵曼商城</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="css/sm.min.css">
    <link rel="stylesheet" href="css/sm-extend.min.css">
    <link rel="stylesheet" href="css/inman.css">
    <script src="https://hm.baidu.com/hm.js?5ee51ef74fa865950bb9a2757fdb33ad"></script><script type="text/javascript" src="js/zepto.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/sm.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/sm-extend.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/functions.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/TouchSlide.1.1.js" charset="utf-8"></script>
    <script type="text/javascript" src="js/jweixin-1.0.0.js"></script>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?5ee51ef74fa865950bb9a2757fdb33ad";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <style type="text/css">.full-html,.full-body{width: 100% !important;height: 100% !important;margin: 0 !important;overflow: hidden !important;}.full-body *{display: none !important;}.full-iframe {display: block !important;}.full-inpage {width: 100% !important;height: 100% !important;margin: 0 !important;overflow: hidden !important;background: rgb(243, 243, 247) !important;}.full-inpage > *:not(.ntalk-mobile-inpage-background) {display: none !important;}</style><script type="text/javascript" async="async" charset="utf-8" src="http://sh-trail.ntalker.com/trail/trail/userinfo.php?action=getregion&amp;siteid=kf_9154&amp;userid=kf_9154_ISME9754_guest0A39358B-D59C-81&amp;callback=trail_getregion_FC2E7ABE"></script><script type="text/javascript" async="async" charset="utf-8" src="http://dl.ntalker.com/js/xn6/zh_cn.js?siteid=kf_9154&amp;v=nt6.92&amp;t=2017.08.25_011034" data-requiremodule="lang"></script><script type="text/javascript" async="async" charset="utf-8" src="http://dl.ntalker.com/js/xn6/chat.in.js?siteid=kf_9154&amp;v=nt6.92&amp;t=2017.08.25_011034" data-requiremodule="chatManage"></script><script type="text/javascript" async="async" charset="utf-8" src="http://dl.ntalker.com/js/xn6/mqtt31.js?siteid=kf_9154&amp;v=nt6.92&amp;t=2017.08.25_011034" data-requiremodule="MQTT"></script><script type="text/javascript" async="async" charset="utf-8" src="http://dl.ntalker.com/js/xn6/mqtt.chat.js?siteid=kf_9154&amp;v=nt6.92&amp;t=2017.08.25_011034" data-requiremodule="Connection"></script></head>
<body><div class="page-group search-page">
    <div class="page page-current" id="page-1510797517111">
        <!--标题栏-->
        <header class="bar bar-nav">
            <a class="icon icon-left pull-left external" href="javascript:history.back(-1);"></a>
            <h1 class="title">搜索</h1>
        </header>
        <!--内容区-->
        <div class="content native-scroll">
            <div class="box1"></div>
            <div class="box2">
                <input type="text" name="keywords" placeholder="输入商品的关键字" id="keywords" value="">
                <button type="button" id="search-btn"></button>
                <div class="cb"></div>
            </div>
            <div class="box3" style="display:block" id="getsearch">
                <p>大家都在搜:</p>
                <a>针织衫</a>
                <a>牛仔裤</a>
                <a>休闲裤</a>
                <a>854180119</a>
                <a>78550710003</a>
                <a>长袖T恤</a>
                <a>连衣裙</a>
                <a>毛衫</a>
                <a>马丁靴羊皮中跟圆头休闲中筒靴女靴子</a>
                <a>卫衣连衣裙</a>
            </div>
        </div>
    </div>
    <script>
        $(function () {
            $("#clearsearch").click(function(){
                var  uri = "http://m.inman.com.cn/index.php/Goods/clearsearch";
                $.showIndicator();
                $.ajax({
                    cache: true,
                    type: "post",
                    url: uri,
                    data: {},
                    async: false,
                    success: function (json) {
                        $.hideIndicator();
                        json = eval('(' + json + ')');
                        if(json.errcode==1){
                            $("#searchdata").hide();
                            $("#getsearch").show();
                        }
                    }
                });
            })

            $("#searchdata p").click(function () {
                var  keydata = $(this).text();
                if(keydata=="清除历史记录"){
                    return false;
                }
                $("#keywords").val(keydata);
                setTimeout(function () {
                    location.href = "http://m.inman.com.cn/index.php/Goods/goodslist?keyword=" + keydata;
                }, 200);
            })


            $("#getsearch a").click(function () {
                var  keydata = $(this).text();
                $("#keywords").val(keydata);
                setTimeout(function () {
                    location.href = "http://m.inman.com.cn/index.php/Goods/goodslist?keyword=" + keydata;
                }, 200);
            })

            $("#search-btn").click(function () {
                var keyword = $("#keywords").val();
                if (typeof(keywords) == 'undefined' || keyword=="") {
                    $.toast("请输入商品的关键字");
                    return false;
                }
                var  uri = "http://m.inman.com.cn/index.php/Goods/getSearchdata";
                $.showIndicator();
                $.ajax({
                    cache: true,
                    type: "post",
                    url: uri,
                    data: {keyword: keyword},
                    async: false,
                    success: function (json) {
                        $.hideIndicator();
                        json = eval('(' + json + ')');
                        if (json.data == null || json.data=="") {
                            $.toast("抱歉，没有找到任何商品");
                            return false;
                        }
                        location.href = "http://m.inman.com.cn/index.php/Goods/goodslist?keyword=" + keyword;
                    }
                });
            })
        })
        $.init();
    </script>
</div><div id="nTalk_post_hiddenElement" style="left: -10px; top: -10px; visibility: hidden; display: none; width: 1px; height: 1px;"></div>



</body></html>